package com.zjb.datastructure;

import org.junit.platform.commons.util.StringUtils;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileReader;

public class logAna {

    public static void main(String[] args) throws Exception{
        BufferedReader reader = new BufferedReader(new FileReader("C:\\Users\\46133\\Desktop\\main.log"));

        String line;
        while (StringUtils.isNotBlank(line = reader.readLine())) {
            if (line.contains("开始执行规则集fin_payb_zhbp")) {
                int i = line.indexOf("2019-12-09");
                System.out.println(line.substring(i,i+10));
                break;
            }
        }
    }
}
